﻿<%@ page language="java" import="com.util.StringFinal" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<!-- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> -->

<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">

<title>专家管理</title>
<script type="text/javascript" src="../../js/wordcontrol.js"></script>
<script type="text/javascript">	
    var sp_remark_length=<%=StringFinal.sp_remark_length%>
    var sp_result_length=<%=StringFinal.sp_result_length%>
    var sp_experience_length=<%=StringFinal.sp_experience_length%>
     
	function deleteUsers(){
		//获得选中数据对象
		var selectedRows=$("#userinfo").datagrid('getSelections');
		if(selectedRows.length==0){
			$.messager.alert("系统提示","请选择要删除的数据！");
			return;
		}
		var strIds=[];//要删除的序号组合
		for(var i=0;i<selectedRows.length;i++){
			strIds.push(selectedRows[i].userzj_id);
		}
		var ids=strIds.join(",");
		$.messager.confirm("系统提示","您确认要删掉这<font color=red>"+selectedRows.length+"</font>条数据吗？",function(r){
			if(r){
				//ajax提交 delIds
				$.post("deleteUserZJList",{userzjids:ids},function(result){
					if(result){
						$.messager.alert("系统提示","您已成功删除<font color=red>"+selectedRows.length+"</font>条数据！");
						$("#userinfo").datagrid("reload");
					}else{
						$.messager.alert('系统提示',"删除失败");
					}
				},"json");
			}
		});
	}
	function deleteUser(index){
		//获得选中数据对象
		var rows = $('#userinfo').datagrid('getRows');
		var selectedRow = rows[index];
		if(selectedRow.length==0){
			$.messager.alert("系统提示","请选择要删除的数据！");
			return;
		}
		$.messager.confirm("系统提示","您确认要删掉这条数据吗？",function(r){
			if(r){
				//ajax提交 delIds
				$.post("deleteUserZJ",{userzj_id:selectedRow.userzj_id},function(result){
					if(result==1){
						$.messager.alert("系统提示","您已成功删除这条数据！");
						$("#userinfo").datagrid("reload");
					}else{
						$.messager.alert('系统提示',"删除失败");
					}
				},"json");
			}
		});
	}
	//查询符合条件的用户
	function searchUser(){
		$('#userinfo').datagrid('load',{
			userzj_name:$('#userzj_name').val(),
			userzj_id:$('#userzj_id').val(),
			userzj_political:$('#userzj_political').combobox("getValue"),
			userzj_region:$('#userzj_region').val(),
			userzj_company:$('#userzj_company').val(),
			userzj_email:$('#userzj_email').val(),
			userzj_validate:$('#userzj_validate').combobox("getValue"),
		});
	}
	
	//验证用户
	function AddUserIsOk() {
		var user_id = $('#auserzj_id').val();
		if (user_id != "") {
			$.ajax({
				type : 'POST',
				url : 'addUserIsOk',
				data : {
					user_id : user_id
				},
				success : function(result) {
					if (result == 0)
					    $('#adduserinfo').html("该手机号码已经存在");
					else
						$('#adduserinfo').html("");
				}
			});
		}
	}
	
	
	//增加用户
	function saveUser(){
		$("#add_fm").form("submit",{
			url:"addUserZJ",
			onSubmit:function(){	
				if($('#adduserinfo').html()!=""){
					$.messager.alert("系统提示","请输入正确手机号码");
					return false;
				}
				if($('#auserzj_id').val()==""){
					$.messager.alert("系统提示","请输入手机号码");
					return false;
				}
				if(!(/^1[0-9]{10}$/.test($('#auserzj_id').val()))){
			        $.messager.alert("系统提示","手机号码格式不正确！");
			        return false;
				}
				if($('#auserzj_sex').combobox("getValue")==""){
					$.messager.alert("系统提示","请选择用户性别");
					return false;
				}
				return $(this).form("validate");
			},
			success:function(result){
				if(result==1){
					$.messager.alert("系统提示","保存成功");
					$("#adduser").dialog("close");
					$("#userinfo").datagrid("reload");
				}else{
					$.messager.alert("系统提示","保存失败");
					return;
				}
			}
		});
	}
	
	function formatOper(val,row,index){
		if(row.userzj_validate_name=='无效'){
			return '<a href="#" onclick="openCheckDialog('+index+')">详情</a>&nbsp;&nbsp;<a href="#" onclick="openUpdateDialog('+index+')">修改</a>';  
		}
		if(row.userzj_validate_name=='有效'){
	        return '<a href="#" onclick="openCheckDialog('+index+')">详情</a>&nbsp;&nbsp;<a href="#" onclick="openUpdateDialog('+index+')">修改</a>&nbsp;&nbsp;<a href="#" onclick="deleteUser('+index+')">删除</a>';  
		}
	} 
	function resetUpdateDialog(){
		$("#uuserzj_id").val("");
		$("#uuserzj_name").val("");
		$("#uuserzj_sex").combobox('clear');
		$("#uuserzj_birth").val("");
		$("#uuserzj_qq").val("");
		$("#uuserzj_email").val("");
		$("#uuserzj_origin").val("");
		$("#uuserzj_nation").combobox('clear');
		$("#uuserzj_political").combobox('clear');
		$("#uuserzj_profession").val("");
		$("#uuserzj_messageaddr").val("");
		$("#uuserzj_postcode").val("");
		$("#uuserzj_company").val("");
		$("#uuserzj_education").val("");
		$("#uuserzj_region").val("");
		$("#uuserzj_experience").val("");
		$("#uuserzj_remark").val("");
		$("#uuserzj_result").val("");
		$("#uexperience_count").text(sp_experience_length);
		$("#uremark_count").text(sp_remark_length);
		$("#uresult_count").text(sp_result_length);
	}
	function openUpdateDialog(index){
		resetUpdateDialog();
	    $("#updateuser").dialog("open");
	    var rows = $('#userinfo').datagrid('getRows');
		var selectedRow = rows[index];
	    if(selectedRow.length==0){
			$.messager.alert("系统提示","请选择要更新的数据！");
			return;
		}
	    
	    $("#uuserzj_validate").combobox("setValue",selectedRow.userzj_validate);
		$("#uuserzj_id").val(selectedRow.userzj_id);
		$("#uuserzj_name").val(selectedRow.userzj_name);
		$("#uuserzj_value").val(selectedRow.userzj_value);
		$("#uuserzj_sex").combobox("setValue",selectedRow.userzj_sex);
		$("#uuserzj_birth").val(selectedRow.userzj_birth);		
		$("#uuserzj_qq").val(selectedRow.userzj_qq);
		$("#uuserzj_email").val(selectedRow.userzj_email);
		$("#uuserzj_origin").val(selectedRow.userzj_origin);
		$("#uuserzj_nation").combobox("setValue",selectedRow.userzj_nation);
		$("#uuserzj_political").combobox("setValue",selectedRow.userzj_political);
		$("#uuserzj_profession").val(selectedRow.userzj_profession);
		$("#uuserzj_messageaddr").val(selectedRow.userzj_messageaddr);
		$("#uuserzj_postcode").val(selectedRow.userzj_postcode);
		$("#uuserzj_company").val(selectedRow.userzj_company);
		$("#uuserzj_education").val(selectedRow.userzj_education);
		$("#uuserzj_region").val(selectedRow.userzj_region);
		if(selectedRow.userzj_experience!=null){
			$("#uuserzj_experience").val(selectedRow.userzj_experience.replace(/&nbsp/g," ").replace(/<br>/g,"\n"));		
			$("#uexperience_count").text(sp_experience_length-selectedRow.userzj_experience.length);
		}
		if(selectedRow.userzj_remark!=null){
			$("#uuserzj_remark").val(selectedRow.userzj_remark.replace(/&nbsp/g," ").replace(/<br>/g,"\n"));
			$("#uremark_count").text(sp_remark_length-selectedRow.userzj_remark.length);
		}
		if(selectedRow.userzj_result!=null){
			$("#uuserzj_result").val(selectedRow.userzj_result.replace(/&nbsp/g," ").replace(/<br>/g,"\n"));
			$("#uresult_count").text(sp_result_length-selectedRow.userzj_result.length);
		}	
	}
           
	//关闭对话框
	function closeUpdateDialog(){
		$("#updateuser").dialog("close");
		
	}
	//增加用户
	function updateUser(){
		$("#update_fm").form("submit",{
			url:"updateUserZJ",
			onSubmit:function(){				
				if($('#uuserzj_id').val()==""){
					$.messager.alert("系统提示","请输入手机号码");
					return false;
				}
				if(!(/^1[0-9]{10}$/.test($('#uuserzj_id').val()))){
			        $.messager.alert("系统提示","手机号码格式不正确");
			        return false;
				}
				if($('#uuserzj_sex').combobox("getValue")==""){
					$.messager.alert("系统提示","请选择用户属性");
					return false;
				}
				return $(this).form("validate");
			},
			success:function(result){
				if(result==1){
					$.messager.alert("系统提示","修改成功");
					$("#updateuser").dialog("close");
					$("#userinfo").datagrid("reload");
				}else{
					$.messager.alert("系统提示","修改失败");
					return;
				}
			}
		});
	}
	function openUserAddDialog(){
		$("#adduser").dialog("open");
		$("#auserzj_id").val("");
		$("#auserzj_name").val("");
		$("#auserzj_sex").combobox("setValue",'女');		
		$("#auserzj_birth").val("");		
		$("#auserzj_qq").val("");
		$("#auserzj_email").val("");
		$("#auserzj_origin").val("");
		$("#auserzj_nation").combobox("setValue",'汉');
		$("#auserzj_political").combobox("setValue",'群众');
		$("#auserzj_profession").val("");
		$("#auserzj_messageaddr").val("");
		$("#auserzj_postcode").val("");
		$("#auserzj_company").val("");
		$("#auserzj_education").val("");
		$("#auserzj_region").val("");
		$("#auserzj_experience").val("");
		$("#auserzj_remark").val("");
		$("#auserzj_result").val("");
		$("#adduserinfo").html("");
		$("#aexperience_count").text(sp_experience_length);
		$("#aremark_count").text(sp_remark_length);
		$("#aresult_count").text(sp_result_length);
	}
	function resetAddDialog(){
		$("#adduserinfo").html("");
		$("#auserzj_id").val("");
		$("#auserzj_name").val("");
		$("#auserzj_sex").combobox("setValue",'女');
		$("#auserzj_birth").val("");
		$("#auserzj_qq").val("");
		$("#auserzj_email").val("");
		$("#auserzj_origin").val("");
		$("#auserzj_nation").combobox("setValue",'汉');
		$("#auserzj_political").combobox("setValue",'群众');
		$("#auserzj_profession").val("");
		$("#auserzj_messageaddr").val("");
		$("#auserzj_postcode").val("");
		$("#auserzj_company").val("");
		$("#auserzj_education").val("");
		$("#auserzj_region").val("");
		$("#auserzj_experience").val("");
		$("#auserzj_remark").val("");
		$("#auserzj_result").val("");
		$("#aexperience_count").text(sp_experience_length);
		$("#aremark_count").text(sp_remark_length);
		$("#aresult_count").text(sp_result_length);
	}
	//关闭对话框
	function closeAddDialog(){
		$("#adduser").dialog("close");
		
	}
	function resetCheckDialog(){
		$("#cuserzj_id").val("");
		$("#cuserzj_name").val("");
		$("#cuserzj_sex").val("");
		$("#cuserzj_birth").val("");
		$("#cuserzj_qq").val("");
		$("#cuserzj_email").val("");
		$("#cuserzj_origin").val("");
		$("#cuserzj_nation").val("");
		$("#cuserzj_political").val("");
		$("#cuserzj_profession").val("");
		$("#cuserzj_messageaddr").val("");
		$("#cuserzj_postcode").val("");
		$("#cuserzj_company").val("");
		$("#cuserzj_education").val("");
		$("#cuserzj_region").val("");
		$("#cuserzj_experience").val("");
		$("#cuserzj_remark").val("");
		$("#cuserzj_result").val("");
		$("#cexperience_count").text(sp_experience_length);
		$("#cremark_count").text(sp_remark_length);
		$("#cresult_count").text(sp_result_length);
	}
	function openCheckDialog(index){
		resetCheckDialog();
		$("#checkuser").dialog("open");
		var rows = $('#userinfo').datagrid('getRows');
		var selectedRow = rows[index];	
	    if(selectedRow.length==0){
			$.messager.alert("系统提示","请选择要查看的数据！");
			return;
		}
	    $("#cuserzj_validate").val(selectedRow.userzj_validate_name);
		$("#cuserzj_id").val(selectedRow.userzj_id);
		$("#cuserzj_name").val(selectedRow.userzj_name);
		$("#cuserzj_value").val(selectedRow.userzj_value);
		$("#cuserzj_sex").val(selectedRow.userzj_sex);
		$("#cuserzj_birth").val(selectedRow.userzj_birth);
		$("#cuserzj_qq").val(selectedRow.userzj_qq);
		$("#cuserzj_email").val(selectedRow.userzj_email);
		$("#cuserzj_origin").val(selectedRow.userzj_origin);
		$("#cuserzj_nation").val(selectedRow.userzj_nation);
		$("#cuserzj_political").val(selectedRow.userzj_political);
		$("#cuserzj_profession").val(selectedRow.userzj_profession);
		$("#cuserzj_messageaddr").val(selectedRow.userzj_messageaddr);
		$("#cuserzj_postcode").val(selectedRow.userzj_postcode);
		$("#cuserzj_company").val(selectedRow.userzj_company);
		$("#cuserzj_education").val(selectedRow.userzj_education);
		$("#cuserzj_region").val(selectedRow.userzj_region);
		if(selectedRow.userzj_experience!=null){
			$("#cuserzj_experience").val(selectedRow.userzj_experience.replace(/&nbsp/g," ").replace(/<br>/g,"\n"));
			
		}
		if(selectedRow.userzj_remark!=null){
			$("#cuserzj_remark").val(selectedRow.userzj_remark.replace(/&nbsp/g," ").replace(/<br>/g,"\n"));
			
		}
		if(selectedRow.userzj_result!=null){
			$("#cuserzj_result").val(selectedRow.userzj_result.replace(/&nbsp/g," ").replace(/<br>/g,"\n"));
			
		}
	}
	
	function closeCheckDialog(){
		$("#checkuser").dialog("close");
	}

</script>
<link rel="stylesheet" type="text/css"
	href="../../easyui-1.5/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="../../easyui-1.5/themes/icon.css" />
<script type="text/javascript" src="../../easyui-1.5/jquery.min.js"></script>
<script type="text/javascript"
	src="../../easyui-1.5/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="../../easyui-1.5/locale/easyui-lang-zh_CN.js"></script>
</head>
<body style="margin: 5px">
	<table id="userinfo" title="用户管理" class="easyui-datagrid"
		fitColumns="true" striped="true" pagination="true" rownumbers="true"
		url="getUserZJList" fit="true" toolbar="#tb">
		<thead>
			<tr>
				<th field="cb" checkbox="true"></th>
				<th field="userzj_name" width="30" align="center">姓名</th>
				<th field="userzj_id" width="50" align="center">手机号码</th>
				<th field="userzj_validate_name" width="30" align="center">是否有效</th>
				<th field="userzj_sex" width="20" align="center" hidden="true">性别</th>
				<th field="userzj_birth" width="50" align="center" hidden="true">生日</th>
				<th field="userzj_qq" width="50" align="center" hidden="true">QQ</th>
				<th field="userzj_email" width="80" align="center">邮箱</th>
				<th field="userzj_origin" width="50" align="center">籍贯</th>
				<th field="userzj_political" width="50" align="center">政治面貌</th>
				<th field="userzj_nation" width="50" align="center" hidden="true">民族</th>
				<th field="userzj_profession" width="50" align="center"
					hidden="true">职称</th>
				<th field="userzj_messageaddr" width="100" align="center"
					hidden="true">通讯地址</th>
				<th field="userzj_postcode" width="50" align="center" hidden="true">行政职务</th>
				<th field="userzj_company" width="100" align="center" hidden="true">单位</th>
				<th field="userzj_education" width="50" align="center" hidden="true">最后学历及获取时间</th>
				<th field="userzj_region" width="100" align="center">研究领域</th>
				<th field="userzj_value" width="30" align="center">专家序列</th>
				<th field="userzj_experience" width="50" align="center"
					hidden="true">工作经历</th>
				<th field="userzj_result" width="50" align="center" hidden="true">研究成果</th>
				<th field="userzj_remark" width="50" align="center" hidden="true">备注</th>
				<th field="user_op" width="80" align="center" formatter="formatOper">操作</th>
			</tr>
		</thead>
	</table>
	<div id="tb">
		<div>
			<form id="export" method="post">
				<div>&nbsp;</div>
				&nbsp;昵称：&nbsp;<input type="text" name="userzj_name"
					id="userzj_name" size="10" /> &nbsp;手机号：&nbsp;<input type="text"
					name="userzj_id" id="userzj_id" size="10" /> &nbsp;邮箱：&nbsp; <input
					name="userzj_email" id="userzj_email" type="text" size="10">
				&nbsp;是否有效：&nbsp; <select class="easyui-combobox"
					id="userzj_validate" name="userzj_validate" editable="false"
					panelHeight="auto" style="width: 60px;">
					<option value="3">请选择</option>
					<option value="1" selected="true">有效</option>
					<option value="2">无效</option>
				</select>&nbsp;&nbsp; &nbsp;政治面貌：&nbsp; <input id="userzj_political"
					class="easyui-combobox" name="userzj_political"
					style="width: 80px;"
					data-options="valueField:'political_id',textField:'political_name',url:'../json/political.json'">
				<div>&nbsp;</div>
				&nbsp;单位：&nbsp;<input type="text" name="userzj_company"
					id="userzj_company" size="30" /> &nbsp;研究领域：&nbsp; <input
					name="userzj_region" id="userzj_region" type="text" size="30">

				<a href="javascript:searchUser()" class="easyui-linkbutton"
					iconCls="icon-search" plain="true">搜索</a> <a
					href="javascript:openUserAddDialog()" class="easyui-linkbutton"
					iconCls="icon-add" plain="true">增加</a> <a
					href="javascript:deleteUsers()" class="easyui-linkbutton"
					iconCls="icon-remove" plain="true">删除选中</a>
				<div>&nbsp;</div>
			</form>
		</div>
	</div>

	<div id="adduser" class="easyui-dialog"
		style="width: 90%; height: 100%; padding: 0px 0px" closed="true"
		buttons="#adduser-buttons" title="新增用户">
		<div
			style="margin: 0 auto; border: 0px solid black; width: 90%; height: 100%;">
			<form id="add_fm" method="post">
				<div>&nbsp;</div>
				&nbsp;姓名：&nbsp; &nbsp; &nbsp; &nbsp; <input type="text"
					name="userzj_name" style="width: 20%; height: 100%;"
					id="auserzj_name" class="easyui-validatebox"
					data-options="required:true" /> &nbsp;手机号码：&nbsp; <input
					type="text" name="userzj_id" id="auserzj_id"
					style="width: 20%; height: 100%;" class="easyui-validatebox"
					onblur="AddUserIsOk()"
					data-options="required:true,validType:'^1(3|4|5|6|7|8|9)\d{9}$'" />
				&nbsp;专家序列：&nbsp; <input type="text" name="userzj_value"
					id="auserzj_value" class="easyui-validatebox" size="5"
					style="width: 5%; height: 100%;"
					data-options="required:true,validType:'digits'" />&nbsp;(决定了专家的显示顺序)&nbsp;
				<label id="adduserinfo"></label>
				<div>&nbsp;</div>
				&nbsp;性别：&nbsp; &nbsp; &nbsp; &nbsp; <select class="easyui-combobox"
					id="auserzj_sex" name="userzj_sex" editable="false"
					panelHeight="auto" style="width: 15%">
					<option value="女">女</option>
					<option value="男">男</option>
				</select> &nbsp;生日：&nbsp; <input type="text" name="userzj_birth"
					id="auserzj_birth" size="12" style="width: 15%; height: 100%;" />
				&nbsp;QQ：&nbsp; <input type="text" name="userzj_qq" id="auserzj_qq"
					class="easyui-validatebox" data-options="validType:'length[9,10]'"
					size="6" style="width: 15%; height: 100%;" /> &nbsp;邮箱：&nbsp; <input
					name="userzj_email" id="auserzj_email" class="easyui-validatebox"
					data-options="validType:'email'" style="width: 20%; height: 100%;">
				<div>&nbsp;</div>
				&nbsp;籍贯：&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<input type="text"
					name="userzj_origin" id="auserzj_origin" size="50"
					style="width: 55%; height: 100%;" /> &nbsp;民族：&nbsp; <input
					id="auserzj_nation" class="easyui-combobox" name="userzj_nation"
					style="width: 15%;"
					data-options="valueField:'nation_id',textField:'nation_name',url:'../json/nation.json'">
				<div>&nbsp;</div>
				&nbsp;政治面貌：&nbsp; <input id="auserzj_political"
					class="easyui-combobox" name="userzj_political" style="width: 20%;"
					data-options="valueField:'political_id',textField:'political_name',url:'../json/political.json'">
				&nbsp;学历/职称：&nbsp; <input type="text" name="userzj_profession"
					style="width: 20%; height: 100%;" id="auserzj_profession" />
				&nbsp;行政职务：&nbsp; <input type="text"
					style="width: 20%; height: 100%;" name="userzj_postcode"
					id="auserzj_postcode" size="20" />
				<div>&nbsp;</div>
				&nbsp;单位：&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<input type="text"
					name="userzj_company" id="auserzj_company" size="80"
					style="width: 80%; height: 100%;" />
				<div>&nbsp;</div>
				&nbsp;通讯地址：&nbsp; <input type="text" name="userzj_messageaddr"
					id="auserzj_messageaddr" size="80"
					style="width: 80%; height: 100%;" />
				<div>&nbsp;</div>
				&nbsp;最后学历获取时间：&nbsp; <input type="text" name="userzj_education"
					id="auserzj_education" size="80" style="width: 80%; height: 100%;" />
				<div>&nbsp;</div>
				&nbsp;研究领域：&nbsp; <input type="text" name="userzj_region"
					id="auserzj_region" size="80" style="width: 80%; height: 100%;" />
				<div>&nbsp;</div>
				&nbsp;研究成果：&nbsp;
				<textarea name="userzj_result" id="auserzj_result" rows="10"
					cols="90" style="width: 80%; height: 100%;"
					onKeyUp="ControlWordCount(&quot;auserzj_result&quot;,&quot;aresult_count&quot;,<%=StringFinal.sp_result_length%>)"></textarea>
				<div>
					<p style="float: left; margin-top: 5px; margin-left: 80px;">
						你还可以输入<span id="aresult_count"><%=StringFinal.sp_result_length%></span>个字
					</p>
				</div>
				<div style="clear: both;"></div>
				&nbsp;工作经历：&nbsp;
				<textarea name="userzj_experience" id="auserzj_experience" rows="5"
					cols="90" style="width: 80%; height: 100%;"
					onKeyUp="ControlWordCount(&quot;auserzj_experience&quot;,&quot;aexperience_count&quot;,<%=StringFinal.sp_experience_length%>)"></textarea>
				<div>
					<p style="float: left; margin-top: 5px; margin-left: 80px;">
						你还可以输入<span id="aexperience_count"><%=StringFinal.sp_experience_length%></span>个字
					</p>
				</div>
				<input type="text" name="userzj_validate" id="auserzj_validate"
					hidden="true" value="1" />
				<div style="clear: both;"></div>
				&nbsp;备注：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<textarea name="userzj_remark" id="auserzj_remark" rows="3"
					cols="90" style="width: 80%; height: 100%;"
					onKeyUp="ControlWordCount(&quot;auserzj_remark&quot;,&quot;aremark_count&quot;,<%=StringFinal.sp_remark_length%>)"></textarea>
				<div>
					<p style="float: left; margin-top: 5px; margin-left: 80px;">
						你还可以输入<span id="aremark_count"><%=StringFinal.sp_remark_length%></span>个字
					</p>
				</div>
			</form>
		</div>
	</div>
	<div id="adduser-buttons">
		<a href="javascript:saveUser()" class="easyui-linkbutton"
			iconCls="icon-ok">保存</a> <a href="javascript:resetAddDialog()"
			class="easyui-linkbutton" iconCls="icon-reset">重置</a> <a
			href="javascript:closeAddDialog()" class="easyui-linkbutton"
			iconCls="icon-cancel">取消</a>
	</div>


	<div id="updateuser" class="easyui-dialog"
		style="width: 90%; height: 100%; padding: 0px 0px" closed="true"
		closed="true" buttons="#updateuser-buttons" title="修改用户信息">
		<div
			style="margin: 0 auto; border: 0px solid black; width: 90%; height: 100%;">
			<form id="update_fm" method="post">
				<div>&nbsp;</div>
				&nbsp;姓名：&nbsp; &nbsp; &nbsp; &nbsp; <input type="text"
					name="userzj_name" style="width: 20%; height: 100%;"
					id="uuserzj_name" class="easyui-validatebox"
					data-options="required:true" /> &nbsp;手机号码：&nbsp; <input
					type="text" name="userzj_id" id="uuserzj_id"
					class="easyui-validatebox" style="width: 20%; height: 100%;"
					data-options="required:true,validType:'^1(3|4|5|6|7|8|9)\d{9}$'" />
				&nbsp;专家序列：&nbsp; <input type="text" name="userzj_value"
					style="width: 5%; height: 100%;" id="uuserzj_value" size="5"
					class="easyui-validatebox"
					data-options="required:true,validType:'digits'" />
				&nbsp;是否有效：&nbsp; <select class="easyui-combobox"
					id="uuserzj_validate" name="userzj_validate" editable="false"
					panelHeight="auto" style="width: 5%;">
					<option value="1">有效</option>
					<option value="2">无效</option>
				</select>
				<div>&nbsp;</div>
				&nbsp;性别：&nbsp; &nbsp; &nbsp; &nbsp; <select class="easyui-combobox"
					id="uuserzj_sex" name="userzj_sex" editable="false"
					panelHeight="auto" style="width: 15%;">
					<option value="女">女</option>
					<option value="男">男</option>
				</select> &nbsp;生日：&nbsp; <input type="text" name="userzj_birth"
					id="uuserzj_birth" size="12" style="width: 15%; height: 100%;" />
				&nbsp;QQ：&nbsp; <input type="text" style="width: 15%; height: 100%;"
					name="userzj_qq" id="uuserzj_qq" class="easyui-validatebox"
					data-options="validType:'length[9,10]'" size="8" />
				&nbsp;邮箱：&nbsp; <input name="userzj_email" id="uuserzj_email"
					class="easyui-validatebox" style="width: 20%; height: 100%;"
					data-options="validType:'email'">
				<div>&nbsp;</div>
				&nbsp;籍贯：&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<input type="text"
					name="userzj_origin" id="uuserzj_origin" size="50"
					style="width: 55%; height: 100%;" /> &nbsp;民族：&nbsp; <input
					id="uuserzj_nation" class="easyui-combobox" name="userzj_nation"
					style="width: 15%;"
					data-options="valueField:'nation_id',textField:'nation_name',url:'../json/nation.json'">
				<div>&nbsp;</div>
				&nbsp;政治面貌：&nbsp; <input id="uuserzj_political" style="width: 20%;"
					class="easyui-combobox" name="userzj_political"
					data-options="valueField:'political_id',textField:'political_name',url:'../json/political.json'">
				&nbsp;学历/职称：&nbsp; <input type="text" name="userzj_profession"
					style="width: 20%; height: 100%;" id="uuserzj_profession" />
				&nbsp;行政职务：&nbsp; <input type="text" name="userzj_postcode"
					id="uuserzj_postcode" size="20" style="width: 20%; height: 100%;" />
				<div>&nbsp;</div>
				&nbsp;单位：&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<input type="text"
					name="userzj_company" id="uuserzj_company" size="80"
					style="width: 80%; height: 100%;" />
				<div>&nbsp;</div>
				&nbsp;通讯地址：&nbsp; <input type="text" name="userzj_messageaddr"
					id="uuserzj_messageaddr" size="80"
					style="width: 80%; height: 100%;" />
				<div>&nbsp;</div>
				&nbsp;最后学历获取时间：&nbsp; <input type="text" name="userzj_education"
					id="uuserzj_education" size="80" style="width: 80%; height: 100%;" />
				<div>&nbsp;</div>
				&nbsp;研究领域：&nbsp; <input type="text" name="userzj_region"
					id="uuserzj_region" size="80" style="width: 80%; height: 100%;" />
				<div>&nbsp;</div>
				&nbsp;研究成果：&nbsp;
				<textarea name="userzj_result" id="uuserzj_result" rows="10"
					cols="90" style="width: 80%; height: 100%;"
					onKeyUp="ControlWordCount(&quot;uuserzj_result&quot;,&quot;uresult_count&quot;,<%=StringFinal.sp_result_length%>)"></textarea>
				<div>
					<p style="float: left; margin-top: 5px; margin-left: 80px;">
						你还可以输入<span id="uresult_count"><%=StringFinal.sp_result_length%></span>个字
					</p>
				</div>
				<div style="clear: both;"></div>
				&nbsp;工作经历：&nbsp;
				<textarea name="userzj_experience" id="uuserzj_experience" rows="5"
					cols="90" style="width: 80%; height: 100%;"
					onKeyUp="ControlWordCount(&quot;uuserzj_experience&quot;,&quot;uexperience_count&quot;,<%=StringFinal.sp_experience_length%>)"></textarea>
				<div>
					<p style="float: left; margin-top: 5px; margin-left: 80px;">
						你还可以输入<span id="uexperience_count"><%=StringFinal.sp_experience_length%></span>个字
					</p>
				</div>
				<div style="clear: both;"></div>
				&nbsp;备注：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<textarea name="userzj_remark" id="uuserzj_remark" rows="3"
					cols="90" style="width: 80%; height: 100%;"
					onKeyUp="ControlWordCount(&quot;uuserzj_remark&quot;,&quot;uremark_count&quot;,<%=StringFinal.sp_remark_length%>)"></textarea>
				<div>
					<p style="float: left; margin-top: 5px; margin-left: 80px;">
						你还可以输入<span id="uremark_count"><%=StringFinal.sp_remark_length%></span>个字
					</p>
				</div>
			</form>
		</div>
	</div>
	<div id="updateuser-buttons">
		<a href="javascript:updateUser()" class="easyui-linkbutton"
			iconCls="icon-ok">保存</a> <a href="javascript:closeUpdateDialog()"
			class="easyui-linkbutton" iconCls="icon-cancel">取消</a>
	</div>

	<div id="checkuser" class="easyui-dialog"
		style="width: 90%; height: 100%; padding: 0px 0px" closed="true"
		buttons="#checkuser-buttons" title="用户信息详情">
		<div
			style="margin: 0 auto; border: 0px solid black; width: 90%; height: 100%;">
			<form id="check_fm" method="post">
				<div>&nbsp;</div>
				&nbsp;姓名：&nbsp; &nbsp; &nbsp; &nbsp; <input type="text" name="userzj_name"
					id="cuserzj_name" class="easyui-validatebox" editable="false" style="width: 20%; height: 100%;"/>
				&nbsp;手机号码：&nbsp; <input type="text" name="userzj_id" style="width: 20%; height: 100%;"
					id="cuserzj_id" class="easyui-validatebox" editable="false" />
				&nbsp;专家序列：&nbsp; <input type="text" name="userzj_value" style="width: 5%; height: 100%;"
					id="cuserzj_value" class="easyui-validatebox" editable="false"
					size="5" /> &nbsp;是否有效：&nbsp; <input id="cuserzj_validate"
					name="userzj_validate" class="easyui-validatebox" editable="false"
					type="text" size="5" style="width: 5%;">
				<div>&nbsp;</div>
				&nbsp;性别：&nbsp; &nbsp; &nbsp; &nbsp; <input id="cuserzj_sex" name="userzj_sex"
					type="text" size="10" class="easyui-validatebox" editable="false" style="width: 15%;">
				&nbsp;生日：&nbsp; <input id="cuserzj_birth" name="userzj_birth" style="width: 15%; height: 100%;" 
					type="text" size="10" class="easyui-validatebox" editable="false">
				&nbsp;QQ：&nbsp; <input type="text" name="userzj_qq" id="cuserzj_qq"
					class="easyui-validatebox" editable="false" style="width: 15%; height: 100%;" /> &nbsp;邮箱：&nbsp; <input
					name="userzj_email" id="cuserzj_email" class="easyui-validatebox"
				    style="width: 20%; height: 100%;" 	editable="false">
				<div>&nbsp;</div>
				&nbsp;籍贯：&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<input type="text" name="userzj_origin"
					id="cuserzj_origin" size="50" class="easyui-validatebox"
					editable="false" style="width: 55%; height: 100%;"/> &nbsp;民族：&nbsp; <input id="cuserzj_nation"
					name="userzj_nation" type="text" class="easyui-validatebox"
					style="width: 15%;" editable="false">
				<div>&nbsp;</div>
				&nbsp;政治面貌：&nbsp; <input id="cuserzj_political" type="text" style="width: 20%;"
					name="userzj_political" class="easyui-validatebox" editable="false">
				&nbsp;学历/职称：&nbsp; <input type="text" name="userzj_profession" style="width: 20%; height: 100%;"
					id="cuserzj_profession" class="easyui-validatebox" editable="false" />
				&nbsp;行政职务：&nbsp; <input type="text" name="userzj_postcode" style="width: 20%; height: 100%;"
					id="cuserzj_postcode" size="20" class="easyui-validatebox"
					editable="false" />
				<div>&nbsp;</div>
				&nbsp;单位：&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<input type="text" name="userzj_company"
					id="cuserzj_company" size="80" class="easyui-validatebox"
					editable="false" style="width: 80%; height: 100%;"/>
				<div>&nbsp;</div>
				&nbsp;通讯地址：&nbsp; <input type="text" name="userzj_messageaddr"
					id="cuserzj_messageaddr" class="easyui-validatebox" size="80"
					editable="false" style="width: 80%; height: 100%;"/>
				<div>&nbsp;</div>
				&nbsp;最后学历获取时间：&nbsp; <input type="text" name="userzj_education"
					id="cuserzj_education" size="80" class="easyui-validatebox"
					editable="false" style="width: 80%; height: 100%;"/>
				<div>&nbsp;</div>
				&nbsp;研究领域：&nbsp; <input type="text" name="userzj_region"
					id="cuserzj_region" size="80" class="easyui-validatebox"
					editable="false" style="width: 80%; height: 100%;"/>
				<div>&nbsp;</div>
				&nbsp;研究成果：&nbsp;
				<textarea name="userzj_result" id="cuserzj_result" rows="10"
					cols="90" readonly="true" style="width: 80%; height: 100%;"></textarea>
				<div>&nbsp;</div>
				&nbsp;工作经历：&nbsp;
				<textarea name="userzj_experience" id="cuserzj_experience" rows="3"
					cols="90" readonly="true"style="width: 80%; height: 100%;"></textarea>
				<div>&nbsp;</div>
				&nbsp;备注：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<textarea name="userzj_remark" id="cuserzj_remark" rows="3"
					cols="90" class="easyui-validatebox" readonly="true"style="width: 80%; height: 100%;"></textarea>
			</form>
		</div>
	</div>
	<div id="checkuser-buttons">

		<a href="javascript:closeCheckDialog()" class="easyui-linkbutton"
			iconCls="icon-cancel">取消</a>
	</div>
</body>
</html>